package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE catcompta</p>
 * <p></p>
 *
 * <p>Generated at Sat Feb 26 23:34:05 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "catcompta")
@SuppressWarnings("serial")
public class Catcompta implements Serializable {

	/**
	 * Attribute idCatcompta.
	 */
	private Integer idCatcompta;
	
	/**
	 * Attribute intitule.
	 */
	private String intitule;
	
	/**
	 * List of Articletaxe
	 */
	private List<Articletaxe> articletaxes = null;

	/**
	 * List of Famille
	 */
	private List<Famille> familles = null;

	
	/**
	 * <p> 
	 * </p>
	 * @return idCatcompta
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_catcompta")
		public Integer getIdCatcompta() {
		return idCatcompta;
	}

	/**
	 * @param idCatcompta new value for idCatcompta 
	 */
	public void setIdCatcompta(Integer idCatcompta) {
		this.idCatcompta = idCatcompta;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return intitule
	 */
	@Basic
	@Column(name = "intitule", length = 150)
		public String getIntitule() {
		return intitule;
	}

	/**
	 * @param intitule new value for intitule 
	 */
	public void setIntitule(String intitule) {
		this.intitule = intitule;
	}
	
	/**
	 * Get the list of Articletaxe
	 */
	@JsonIgnore
	@OneToMany(mappedBy="catcompta")
	 public List<Articletaxe> getArticletaxes() {
	 	return this.articletaxes;
	 }
	 
	/**
	 * Set the list of Articletaxe
	 */
	 public void setArticletaxes(List<Articletaxe> articletaxes) {
	 	this.articletaxes = articletaxes;
	 }
	/**
	 * Get the list of Famille
	 */
	 @JsonIgnore
	 @OneToMany(mappedBy="catcompta")
	 public List<Famille> getFamilles() {
	 	return this.familles;
	 }
	 
	/**
	 * Set the list of Famille
	 */
	 public void setFamilles(List<Famille> familles) {
	 	this.familles = familles;
	 }


}